package car.aistar.controller;

import car.aistar.entity.UserCollect;
import car.aistar.service.UserCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



/**
 * (UserCollect)表控制层
 *
 * @author makejava
 * @since 2020-09-30 20:38:35
 */
@RestController
@RequestMapping("userCollect")
public class UserCollectController {
    /**
     * 服务对象
     */
    @Autowired
    private UserCollectService userCollectService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public UserCollect selectOne(Long id) {
        return this.userCollectService.queryById(id);
    }

}